package com.Bean;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class UserCounter {

    private int UserNumber;

    public void AddUser()
    {
        this.UserNumber++;
    }

    public void DecUser()
    {
        this.UserNumber--;
    }

    public int GetUserNumber()
    {
        return this.UserNumber;
    }
}
